<template>
  <div class="min-h-screen flex items-center justify-center bg-gradient-to-r from-blue-500 to-blue-700">
    <router-view></router-view>
    <div class="text-center">
      <h1 class="text-4xl font-bold text-white">欢迎使用皮肤病识别及分类系统！</h1>
      <button @click="goToLogin" class="mt-4 px-6 py-2 bg-white text-blue-500 rounded-lg hover:bg-blue-100">
        前往登录
      </button>
      <button @click="goToHome" class="mt-4 px-6 py-2 bg-white text-blue-500 rounded-lg hover:bg-blue-100">
        没有小熊的数据库就点这里
      </button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();
const goToLogin = () => {
  router.push('/users/login');
};
const goToHome = () => {
  router.push('/Home');
};
</script>

<style scoped>
</style>